package com.hsjk.szwj.module.train.dal.dataobject.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hsjk.szwj.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/12/04 18:16
 **/
@TableName(value = "train_sku_division_mapping", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
public class SkuDivisionMappingDO extends TenantBaseDO {
    private Long id;
    /**
     * sku id
     */
    private Long skuId;
    /**
     * 分账账号id
     */
    private Long mchDivisionReceiverId;
    /**
     * 分账模型，1：金额，2：百分比
     */
    private Integer divisionModel;
    /**
     * 分账比例
     */
    private BigDecimal divisionProfit;
    /**
     * 分账金额，单位：分
     */
    private Long divisionAmount;
}
